basedir:=..
antlr:=antlr
srcdir:=.
pathhere:=rep
objdir:=$(basedir)/obj/$(pathhere)

CXX = ccache g++
COMPILEFLAGS = -Wall -I/usr/local/include -g
LINKFLAGS = -L/usr/local/lib -lantlr


allobjnames:= allocator.o

allobjfiles:=$(addprefix $(objdir)/, $(allobjnames))

all: $(allobjfiles)

$(objdir)/%.o: %.cpp 
	$(CXX) -c $< -o $@ $(COMPILEFLAGS)

check: all
	$(MAKE) -C test check 

clean: 
	-rm $(allobjfiles) $(executables)
